<?php
/**
 * @Author:      zhaoyang
 * @DateTime:    2018-1-30 
 * @Description: PMS 采购单流转日志
 */
class PMSOrderFlow extends Eloquent
{
    protected $table = "pms_order_flow";

    public static $source = [1=>'门店(SCE)', 2=>'采购平台(PMS)'];
    
     public static $status = [1=>'计划中',2=>'审核中',3=>'驳回',4=>'采购中',5=>'待收货',6=>'完成',0=>'取消'];
    
    public static $operation = [1=>'创建',2=>'提交审核',3=>'取消审核',4=>'驳回',5=>'返审核',6=>'审核通过',7=>"已定货",8=>"完成",0=>'取消'];
 
    //创建人
    public function created_by(){
        return $this->belongsTo('PMSUser','created_by','id');
    }
    
}